import java.util.Scanner;
public class Excise3{

    public static void main(String args[]){
        System.out.println("请输入你要转化的十进制整数：");
        Scanner s=new Scanner(System.in);
        int a=s.nextInt();
        s.close();
        String b="";
            if(a>0)
            {
                for(int i=a;i!=0;i=i/2)
                {
                        int c=i%2;
                        b=c+b;
                }
            }
                else if(a<0)
                {
                    Math.abs(a);
                    for(int i=a;i!=0;i=i/2)
                    {
                            int c=i%2;
                            b=c+b;
                    }
                    //String d=~b;
                }
    }
}